package cn.elvinle.manager.simpl;

import cn.elvinle.manager.dao.mapper.UserMapper;
import cn.elvinle.manager.pojo.User;
import cn.elvinle.manager.service.UserService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * author : elvin
 * time : 2018-01-08 02:16
 */
@Service
public class UserSImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {

        List<User> list = userMapper.getAll();

        System.out.println("服务端读取到数据：" + list);

        return list;
    }
}
